using System;

namespace IQIGame.Onigao.Logic
{
    public static partial class LogicHelper
    {
        public static Func<long> AllocGUID;
        public static string LogicServerId;
        /// <summary>
        /// 用于获取系统时间，返回值为毫秒时间戳
        /// </summary>
        public static Func<long> TimeProvider;

        /// <summary>
        /// 当前系统时间
        /// </summary>
        public static long TimeNow => TimeProvider.Invoke();
        /// <summary>
        /// 当前系统秒时间
        /// </summary>
        public static int TimeNowSeconds => (int)(TimeProvider.Invoke() / 1000);
        /// <summary>
        /// 获取剧情
        /// </summary>
        public static Func<string, StoryConfig> GetTbCfgStory;

    }
}